<template>
  <div class="page-home">
    <!-- 首页入口 -->
    <div class="home-entry">
      <!-- container 版心 -->
      <div class="container">
        <!-- 左侧分类 -->
        <HomeCategory />
        <!-- 右侧轮播图 -->
        <HomeBanner />
      </div>
    </div>
    <!-- 首页楼层开始 -->
    <!-- 楼层1：新鲜好物 -->
    <Suspense>
      <HomeNew />
      <template #fallback>
        <h1>loading....</h1>
      </template>
    </Suspense>
    <!-- 楼层2：人气推荐 -->
    <HomeHot />
    <!-- 楼层3：热门品牌 -->
    <HomeBrand />
    <!-- 楼层4：商品区块 -->
    <HomeProduct />
  </div>
</template>

<script>
import { defineAsyncComponent } from 'vue'
import HomeBanner from './components/home-banner.vue'
import HomeBrand from './components/home-brand.vue'
import HomeCategory from './components/home-category.vue'
import HomeHot from './components/home-hot.vue'
// import HomeNew from './components/home-new.vue'
import HomeProduct from './components/home-product.vue'
export default {
  name: 'PageHome',
  components: { HomeCategory, HomeBanner, HomeNew: defineAsyncComponent(() => import('./components/home-new.vue')), HomeHot, HomeBrand, HomeProduct }
}
</script>

<style scoped lang="less">
</style>
